package io.renren.service;

import com.baomidou.mybatisplus.service.IService;
import io.renren.common.utils.PageUtils;
import io.renren.entity.CampaignEntity;

import java.util.List;
import java.util.Map;

/**
 *
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2019-01-20 12:55:41
 */
public interface CampaignService extends IService<CampaignEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPageByUID(Map<String, Object> params);


    /**
     * 创建新的项目活动
     * @param campaignEntity
     * @return
     */
    boolean createNewCampaign(CampaignEntity campaignEntity);


    /**
     * 按照项目名称或者tagline全文检索
     * @param content
     * @return
     */
    List<CampaignEntity> queryByContentOrTagline(String content);
}

